import Mock from 'mockjs'

Mock.setup({
    timeout: 1000
})

Mock.mock('/getNum', () => {
    let num = String(Math.random()).slice(2, 3)
    return Number(num)
})

Mock.mock('/getList', [1, 2, 3, 4, 5, 6])